package com.cn.goodsadmin.factory;

import com.cn.goodsadmin.common.frame.NetFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;


@Component("initDb")
public class InitManager {
    @Autowired
    GoodsNetFactoryAgecny goodsNetFactoryAgecny;

    @PostConstruct
    public void init() throws Exception {
        System.out.println("init InitManager ");
        //初始化netfactory
//        NetFactory.getIntance().setiNetFactoryAgecny(goodsNetFactoryAgecny);
    }

    @PreDestroy
    public void destory() throws Exception {

    }
}
